import Car.Bike;
import Car.Car;
import Car.Taxi;
import Car.Track;

public class Factor {
    public static Car CreateCar(String str){
        Car car = null;
    if(str.equalsIgnoreCase("卡车")){
       car=new Track();
    }
 if(str.equalsIgnoreCase("出租车")){
       car=new Taxi();
    }
     if(str.equalsIgnoreCase("自行车")){
       car=new Bike();
    }
    return car;
    }

}
